<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>
    <jsp:include page="include/resource.jsp"/>
</head>
<body>
<jsp:include page="include/header.jsp"/>
<div class="container">
    <div class="col-xs-9">
        <div class="bs-example">
            <div class="row">

                <c:forEach items="${courseList}" var="item">
                    <div class="col-sm-6 col-md-4">
                        <div class="thumbnail">
                            <div class="caption">
                                <h3>${item.name}</h3>
                                <p>${item.descript}</p>
                                <p style="text-align: center"><a href="/detail/${item.id}.do" class="btn btn-primary"
                                                                 role="button">查看详情</a></p>
                            </div>
                        </div>
                    </div>
                </c:forEach>
            </div>

        </div>

    </div>
    <div class="col-xs-3">
        <div class="row">
            <ul class="list-group text-center">
                <li class="list-group-item active">最新公告</li>
                <c:forEach items="${activityList}" var="item">
                    <li class="list-group-item" onclick="javascript:location.href = '/notice/${item.id}.do'">${item.name}</li>
                </c:forEach>

            </ul>
        </div>
    </div>
</div>
</body>
</html>
